One Drive Scope
AutomatR.OneDriveApp.Activities.OneDriveScope
The "OneDrive Scope" activity in AutomatR facilitates OAuth authentication to establish a secure connection between AutomatR and your OneDrive environment. This connection authorizes a Robot to call OneDrive APIs and access resources on your behalf. This activity is essential for enabling other OneDrive activities within your workflow.
Properties
Name | Description |
---|---|
Input | |
Authentication | Specifies the authentication details needed to connect to OneDrive. It includes the refresh token and the mail ID associated with your OneDrive account. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "OneDrive Scope" activity. Integer variables containing the delay duration. Example: 5 seconds i.e. 5. |
How to Use
- Drag and drop the "OneDrive Scope" activity onto the workflow.
- Configure the properties by specifying the authentication details, including the refresh token and mail ID associated with your OneDrive account.
- Optionally, configure the delay and customize the display name.
- Place the activities you want to perform within the OneDrive scope inside the activity body.
Important Notes:
- The "OneDrive Scope" activity must be used to encapsulate other OneDrive activities to ensure proper authentication.
- The "Authentication" parameter requires the refresh token and the mail ID associated with your OneDrive account.
Example:
Consider an example where the "OneDrive Scope" activity is used to authenticate and execute a series of OneDrive activities:
OneDrive Scope:
Display Name: "Authenticate and Access OneDrive"
Authentication: (Specify Refresh Token and Mail ID)
Refresh Token: "your_refresh_token"
Mail ID: "your@mail.com"
(Other OneDrive Activities Here...)
In this example, the "OneDrive Scope" activity establishes a connection with OneDrive using the provided refresh token and mail ID. The subsequent OneDrive activities placed inside the scope can now access OneDrive resources on behalf of the authenticated user.